package com.it.listener;

import com.it.config.MQConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class MQListener {

    @RabbitListener(queues = MQConfig.myTwoQueuey)
    public void checkUserSeckilPay(Map<String, Object> data) {
        System.out.println("5分钟之后检查订单状态是否支付");
        System.out.println(data);

    }
}
